package org.chen.dev.learn.jfinal;

import com.jfinal.config.*;
import com.jfinal.server.undertow.UndertowServer;
import com.jfinal.template.Engine;
import org.chen.dev.learn.jfinal.web.HelloController;

/**
 * 主入口
 *
 * @author chensj
 * @date 2020-04-04  2020/4/4
 */
public class JfinalConfig extends JFinalConfig {

    public static void main(String[] args) {
        UndertowServer.start(JfinalConfig.class, 8080, true);
    }

    @Override
    public void configConstant(Constants constants) {
        constants.setDevMode(true);
    }

    @Override
    public void configRoute(Routes routes) {
        routes.add("/hello", HelloController.class);
    }

    @Override
    public void configEngine(Engine engine) {

    }

    @Override
    public void configPlugin(Plugins plugins) {

    }

    @Override
    public void configInterceptor(Interceptors interceptors) {

    }

    @Override
    public void configHandler(Handlers handlers) {

    }
}
